<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.box {
			  width: 100px;
			  height: 100px;
			  background-color: red;
			  animation: fade 2s ease-in-out infinite alternate;
			}
			
			@keyframes fade {
			  0% {
			    opacity: 0;
			  }
			  100% {
			    opacity: 1;
			  }
			}
			.box1 {
			  width: 100px;
			  height: 100px;
			  background-color: blue;
			  animation: rotate 2s linear infinite;
			}
			
			@keyframes rotate {
			  0% {
			    transform: rotate(0deg);
			  }
			  100% {
			    transform: rotate(360deg);
			  }
			}
		</style>
		
	</head>
	<body>
		<div class="box"></div>
		<div class="box1"></div>
		
	</body>
</html>